package com.yuexunit.finance.system.entity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import com.yuexunit.finance.project.entity.lexicon.FileSignStateEnum;

/**
*@version 创建时间：2017年5月27日 下午4:06:06
*@author wenwenlong
*类说明
*/

@Entity
@Table(name = "SIGN_FILE_INFO")
public class SignFileInfoEntity {
	/** 文件UUID*/
	@Id
	@Column(name = "FILE_UUID")
	private String fileUuid;
	
	/** 签署状态*/
	@Column(name = "FILE_SIGN_STATE")
	private FileSignStateEnum fileSignState;
	
	/** 更新时间*/
	@Column(name = "UPDATE_DT")
	private Date updateDateTime;
	
	/** 签署信息 */
	@Column(name = "MSG")
	private String msg;
	
	/** 是否需要签署 0-否 1-是 */
	@Column(name = "FILES_SIGN")
	private String filesSign;
	
	/** 退回备注 */
	@Column(name = "CALLBACK_REMARK")
	private String callbackReamrk;
	
	/** 修改备注 */
	@Column(name = "UPDATE_REMARK")
	private String updateReamark;

	public String getCallbackReamrk() {
		if (null == callbackReamrk) {
			return "";
		}
		return callbackReamrk;
	}

	public void setCallbackReamrk(String callbackReamrk) {
		this.callbackReamrk = callbackReamrk;
	}

	public String getUpdateReamark() {
		if (null == updateReamark) {
			return "";
		}
		return updateReamark;
	}

	public void setUpdateReamark(String updateReamark) {
		this.updateReamark = updateReamark;
	}

	public String getFilesSign() {
		return filesSign;
	}

	public void setFilesSign(String filesSign) {
		this.filesSign = filesSign;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}

	public String getFileUuid() {
		return fileUuid;
	}

	public void setFileUuid(String fileUuid) {
		this.fileUuid = fileUuid;
	}

	public FileSignStateEnum getFileSignState() {
		if (fileSignState == null) {
			return FileSignStateEnum.UNKNOWN;
		}
		return fileSignState;
	}

	public void setFileSignState(FileSignStateEnum fileSignState) {
		this.fileSignState = fileSignState;
	}

	public Date getUpdateDateTime() {
		return updateDateTime;
	}

	public void setUpdateDateTime(Date updateDateTime) {
		this.updateDateTime = updateDateTime;
	}
}
